//医疗默认参数
if(isNil "FAR_EnableDeathMessages")then {FAR_EnableDeathMessages = true}; //使用倒下和击伤提示
/*
	0 = 只有医疗兵才能治疗无需医疗包和急救包
	1 = 任何人都能救治无需医疗包和急救包
	2 = 必须有医疗包有黄包的只能止血
	3 = 玩家只要有医疗包(不消耗)或急救箱(-1)就可以治疗
	4 = 任何人都能救治有医疗包的能满血救活，没有的可选择消耗黄包来满血救治
*/
if(isNil "FAR_ReviveMode")then {FAR_ReviveMode = 3}; //1,4模式无止血菜单, 0,2,3模式满足医治条件时隐藏止血菜单
if(isNil "FAR_actMode")then {FAR_actMode = 0}; //治疗与止血的模式 3种模式可选0~2
if(isNil "FAR_reviveTime")then {FAR_reviveTime = 10}; //复苏伤员所需时间
if(isNil "FAR_StabilizeTime")then {FAR_StabilizeTime = 5}; //为伤员止血所需时间
if(isNil "FAR_BleedOut")then {FAR_BleedOut = 600}; //流血死亡超时 0值禁用显示倒下时间,无止血菜单
if(isNil "FAR_bleedTime")then {FAR_bleedTime = true}; //false 禁止显示3d流血读秒
if(isNil "FAR_in_Spectator")then {FAR_in_Spectator = false}; //true 倒下强制进入观战模式
if(isNil "FAR_cam_mod")then {FAR_cam_mod = true}; //false 观战模式只允许玩家视角
if(isNil "FAR_cam_free")then {FAR_cam_free = true}; //false 禁用自由视角调整
if(isNil "FAR_death_Score")then {FAR_death_Score = true}; //true 启用计分板死亡计数
if(isNil "FAR_kill_Score")then {FAR_kill_Score = true}; //true 启用计分板击杀计数
if(isNil "FAR_map_mak")then {FAR_map_mak = true}; //false 地图上不显示倒地标记
if(isNil "FAR_dist")then {FAR_dist = 80}; //多少米内显示3D标记 0值不显示
if(isNil "FAR_Talk_chat")then {FAR_Talk_chat = false}; //true 禁用语音&文字交流
if(isNil "FAR_map_gps")then {FAR_map_gps = false}; //true 禁止打开地图和GPS
if(isNil "FAR_callAI_en")then {FAR_callAI_en = true}; //false 禁止呼叫AI救治
if(isNil "FAR_AI_RS")then {FAR_AI_RS = false}; //false 禁用AI互救
if(isNil "FAR_DISABLE_ATAG")then {FAR_DISABLE_ATAG = true}; //true 禁止AI呼叫的AI与敌人交战
if(isNil "FAR_callAI_dist")then {FAR_callAI_dist = 1000}; //AI救治最大距离限制
if(isNil "FAR_allow_kill")then {FAR_allow_kill = true}; //是否允许杀死敌人玩家 DISABLE
if(isNil "FAR_allow_creep")then {FAR_allow_creep = true}; //false 禁止爬行
if(isNil "FAR_water_rs")then {FAR_water_rs = true}; //false 不允许水下救人和止血
if(isNil "FAR_Remove_body")then {FAR_Remove_body = false}; //true 删除玩家尸体
if(isNil "FAR_killFriend")then {FAR_killFriend = false}; //true 开启击伤队友惩罚
if(isNil "FAR_allow_killFriend")then {FAR_allow_killFriend = 2}; //允许短期误伤队友次数
if(isNil "FAR_killFriend_time")then {FAR_killFriend_time = 180}; //惩罚时间
if(isNil "FAR_death_Effect")then {FAR_death_Effect = true}; //false 关闭死亡特效
if(isNil "FAR_playableUnit")then {FAR_playableUnit = false}; //true 多人模式玩家小队AI(可扮演的AI)启用FAR
if(isNil "FAR_SIDE_Medic")then {FAR_SIDE_Medic = []}; //除了玩家阵营还允许哪些阵营的AI救治玩家
if(isNil "FAR_join_side")then {FAR_join_side = false}; //true 非同阵营的AI救治玩家时短暂加入玩家阵营
if(isNil "FAR_Invincible")then {FAR_Invincible = true}; //false 倒下单位可以被杀死
if(isNil "FAR_shot_creep")then {FAR_shot_creep = false}; //true 爬动会被敌人攻击
if(isNil "FAR_bleed_creep2")then {FAR_bleed_creep2 = [20,83]}; //爬动被攻击流血 随机20秒 + 随机[最小值,最大值]
if(isNil "FAR_un_script")then {FAR_un_script = {}}; //单位倒下时执行脚本代码

if(isNil "FAR_revive_script")then {FAR_revive_script = {
	params ["_unit", "_medic"];
	//医生是玩家
	if(isPlayer _medic
	&& {_medic call fn_isPlayerRed})then{
		private _money = _medic getVariable["as_money", 0];
		_medic setVariable["as_money",  _money + Param_Money_medic, true];
	}else{
		//不是玩家
		private _money = _unit getVariable["as_money", 0];
		_unit setVariable["as_money",  _money - Param_Money_call, true];
		
		_money = _medic getVariable["as_money", 0];
		_medic setVariable["as_money",  _money + Param_Money_call, true];
	};
}}; //单位成功救治伤员时执行脚本代码

if(isNil "FAR_KnockDown_script")then {FAR_KnockDown_script = {
	params ["_killed", "_killsInfantry"];//（-1是友军误伤，1是击倒敌人）
	//友军误伤
	if(_killsInfantry == -1)then{
		private _money = player getVariable["as_money", 0];
		player setVariable["as_money",  _money - Param_Money_medic, true];
	}else{
	//绿军击伤
		private _money = player getVariable["as_money", 0];
		player setVariable["as_money",  _money + 20, true];
	};
}}; //玩家击倒单位时执行脚本代码

if(isNil "FAR_callAI_condition")then {FAR_callAI_condition = {
	if(player getVariable["as_money", 0] >= Param_Money_call)exitWith{true};
	TitleText [format["需要%1的金钱寻求平民帮助", Param_Money_call], "PLAIN"];
	false
}}; //呼叫AI救治所需条件


if(isNil "FAR_callAI_checkCond")then {FAR_callAI_checkCond = {false}}; //AI救治过程条件true取消救治

if(isNil "FAR_allow_suicide")then {FAR_allow_suicide = true}; //false 禁用自杀

if(isNil "FAR_spectating_type")then {FAR_spectating_type = "SIDE"}; //观战阵营
//////////////////////////////////////////////////////////////////////////////////////////////////////////////

